package designmodel.builder.经典建造者模式.练习案例;

import java.util.StringJoiner;

/**
 *
 * @author scylla
 * @version V1.0
 * @project echo-java-base
 * @title
 * @package designmodel.builder.经典建造者模式.练习案例
 * @since 2021/12/16 10:43 上午
 */
public class SunnyVideoPlayer {
    private String menu;//菜单
    private String vlist;//播放列表
    private String mainWindow;//主窗口 必须
    private String controlBar;//控制条 必须
    private String clist;//收藏列表

    public SunnyVideoPlayer(String mainWindow, String controlBar) {
        this.mainWindow = mainWindow;
        this.controlBar = controlBar;
    }


    public void setMenu(String menu) {
        this.menu = menu;
    }

    public void setVlist(String vlist) {
        this.vlist = vlist;
    }

    public void setClist(String clist) {
        this.clist = clist;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", SunnyVideoPlayer.class.getSimpleName() + "[", "]")
                .add("menu='" + menu + "'")
                .add("vlist='" + vlist + "'")
                .add("mainWindow='" + mainWindow + "'")
                .add("controlBar='" + controlBar + "'")
                .add("clist='" + clist + "'")
                .toString();
    }
}
